var msgtimeout     = 3000;
var msgclosetimer  = 0;
var msgmenuitem  = 0;
var msgover = 0;

//Closetimer starten
function closetimerMSG() {
	msgclosetimer = window.setTimeout(closeMSG, msgtimeout);
}

function closeMSG() {
	document.getElementById('message').style.visibility = 'hidden';
}

function cancelCloseMSG() {
	if(msgclosetimer) {
		window.clearTimeout(msgclosetimer);
		msgclosetimer = null;
	}
}